package cn.ang.app.controller;

import cn.ang.app.pojo.DataDictionary;
import cn.ang.app.service.DataDictionaryService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
@RequestMapping("/dataDictionary")
public class DataDictionaryController {

    @Resource(name = "dataDictionaryServiceImpl")
    private DataDictionaryService dataDictionaryService;

    @RequestMapping("/getAppState")
    public @ResponseBody Object getAppState(boolean flag){
        List<DataDictionary> dataDictionaries = dataDictionaryService.appState(flag);
        return dataDictionaries;
    }

    @RequestMapping("/getAppPlatform")
    public @ResponseBody Object getAppPlatform(boolean flag){
        List<DataDictionary> dataDictionaries = dataDictionaryService.appPlatform(flag);
        return dataDictionaries;
    }
}
